package com.example.x.dnuifood_929dx.iface;

import com.example.x.dnuifood_929dx.listener.onRetrofitListener;

/**
 * Created by X on 2018/11/19.
 */

public interface FoodIface {


    void isCollected(String user_id,
                     String shop_food_id,
                     String flag,
                     onRetrofitListener listener);

    void userCollectFood(String user_id, String food_id, onRetrofitListener listener);

    void getFoodById(String food_id,onRetrofitListener listener);

    void getAllCommentsByFood( String food_id, onRetrofitListener listener);

    void getFoodBySearch(
            String search,onRetrofitListener listener );
    void getAllOrdersByUser(

            String user_id,
            onRetrofitListener listener);

    void getAllCommentsByUser(

            String user_id ,
            onRetrofitListener listener);

    void insertComment(

            String item_id,
            String content,
            onRetrofitListener listener

    );
    void updateComment(

            String item_id,
            String content,
            onRetrofitListener listener

    );
    void deleteComment(

            String item_id,
            onRetrofitListener listener
    );
<<<<<<< HEAD
}
=======

}
>>>>>>> 7d40ec77a62d4e99dfff64cbd213ec2d2ace3094
